package com.atguigu.educms.service.impl;

import com.atguigu.educms.entity.QaSecondAnswer;
import com.atguigu.educms.mapper.QaSecondAnswerMapper;
import com.atguigu.educms.service.QaSecondAnswerService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Panghl
 * @since 2021-03-14
 */
@Service
public class QaSecondAnswerServiceImpl extends ServiceImpl<QaSecondAnswerMapper, QaSecondAnswer> implements QaSecondAnswerService {

    @Override
    public List<QaSecondAnswer> get2AnswerList(Integer answerId) {
        QueryWrapper<QaSecondAnswer> qw = new QueryWrapper<>();
        qw.eq("answer_id",answerId);
        return baseMapper.selectList(qw);
    }
}
